package com.lujianbuping.system.opportunityprojectmanagementsystem.dao;

import com.lujianbuping.system.opportunityprojectmanagementsystem.entity.MenuEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface MenuMapper {
	int deleteByPrimaryKey(String id);

	int insert(MenuEntity record);

	int insertSelective(MenuEntity record);

	MenuEntity selectByPrimaryKey(String id);
	/**
	 * 选择更新
	 */
	int updateByPrimaryKeySelective(MenuEntity record);
	/**
	 * 全体更新
	 */
	int updateByPrimaryKey(MenuEntity record);

	List<MenuEntity> selectAll(@Param("orderBy") String orderBy);

	List<MenuEntity> selectByKeyWithPagination(@Param("key") String key, @Param("pageNo") int pageNo,
                                               @Param("pageSize") int pageSize);
}